package com.repository;

import com.entity.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentRepository extends JpaRepository<Comment,Integer> {

        List<Comment> findByArticleId(Integer articleId, Sort sort);

        int countByArticleId(Integer articleId);
}
